toast


Auto.js Pro 9 Docs / toast

toast

Table of contents

Interfaces

Functions

Functions

showToast

showToast(msg, options?): void

Show a Toast message. Some system may not show Toast in background, or need to grant notification permission to show Toast.

Note! Multiple Toast will be queued, even if the script is terminated, Toast may still be shown.

Example

"nodejs";
const { showToast } = require('toast');
showToast('Hello world!');

Parameters

NameTypeDescription
msganyToast text
options?"short" | "long" | ToastOptionsToast duration, default is short. Different system may have different specific duration for 'short' and 'long'.

Returns

void